import ajax from './ajax'

//获取排位排名
export function fetchRankingData() {
  return ajax({
    url: '/rank/6v6',
    method: 'get'
  })
}
//获取对战记录
export function fetchBattleRecordData( currentPage= 1, limit = 40) {
  return ajax({
    url: '/customer/battleRecords',
    method: 'post',
    data: {
      currentPage,
      limit
    }
  })
}

  //获取精灵胜率
export function fetchPetWinRateData(weekMonth, weekNumberInMonth) {
  return ajax({
    url: '/rank/pet',
    method: 'get',
    params: {
      weekMonth,
      weekNumberInMonth
    }
  })
}
